﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ColladaViewer
{
    using Color = Microsoft.Xna.Framework.Color;
    using EffectMaterial = Omi.Xna.Collada.Model.Materials.EffectMaterial;

    /// <summary>
    /// This control displays a given material
    /// </summary>
    public class MaterialPreviewControl : GraphicsDeviceControl
    {
        private EffectMaterial material;

        /// <summary>
        /// Gets or sets the material to display
        /// </summary>
        public EffectMaterial Material
        {
            get
            {
                return material;
            }
            set
            {
                material = value;
            }
        }

        public MaterialPreviewControl()
        {
            
        }

        protected override void Initialize()
        {
            
        }

        protected override void Draw()
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
        }
    }
}
